﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SusuCMS
{
    public class WebsiteRepository : RepositoryBase, IWebsiteRepository
    {
        public WebsiteRepository(IUnitOfWork unitOfWork) : base(unitOfWork) { }

        public IQueryable<Website> FindAll()
        {
            return _CmsDataContext.Websites;
        }

        public void Add(Website website)
        {
            _CmsDataContext.Websites.Add(website);
        }

        public void Remove(Website website)
        {
            _CmsDataContext.Websites.Remove(website);
        }
    }
}
